package string;

/**
 * @ClassName StringTestDemo
 * @Author ykx
 * @Date 2024/6/23 11:13
 * @Version 1.0
 */
public class StringTestDemo {
//    public static void main(String[] args) {
//        String str = new String("str");
//        System.out.println(str);
//    }

    public void test01() {

        String s1 = "ab";

        String s2 = "cd";

        String s3 = "abcd";

        String s4 = "ab" + "cd";

        String s5 = s1 + s2;

        System.out.println(s3 == s4); //true

        System.out.println(s3 == s5); //false

        System.out.println(s4 == s5); //false

    }

}
